﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Org.EasyWeb.Data
{
    public class CreateCodeEventArgs : EventArgs
    {
        private string fName;
        private DataRow fTableRow;
        private DataRow[] fFieldRows;

        public CreateCodeEventArgs()
            : base()
        {
        }

        public string Name
        {
            get
            {
                return fName;
            }
        }

        public DataRow TableRow
        {
            get
            {
                return fTableRow;
            }
        }

        public DataRow[] FieldRows
        {
            get
            {
                return fFieldRows;
            }
        }

        public void SetProperties(string name, DataRow tableRow, DataRow[] fieldRows)
        {
            fName = name;
            fTableRow = tableRow;
            fFieldRows = fieldRows;
        }
    }
}